//
//  ZCDownLoadTool.h
//  VoiceMusic
//
//  Created by dllo on 15/10/24.
//  Copyright © 2015年 zhangdeyu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FileModel.h"

@protocol downDelegate <NSObject>


//更新全部文件大小代理
- (void)updateFileSize;

//更新完成列表
- (void)updateFinishList;

//获取下载进度协议
- (void)updateTaskProgress:(ASIHTTPRequest *)request;
@end

@interface ZCDownLoadTool : NSObject

@property (nonatomic, weak)id<downDelegate> delegate;
@property (nonatomic, strong, readonly) NSMutableArray *downloadArr;
@property (nonatomic, strong, readonly) NSMutableArray *finishArr;
@property (nonatomic, strong, readonly) NSMutableArray *videoSizeArr;
+ (ZCDownLoadTool *)shareDownLoad;

- (void)addDownloadTask:(NSString *)fileName
                 urlStr:(NSString *)url
                 singer:(NSString *)sing;

- (void)pasueDownloadTask:(FileModel *)fileModel;
- (void)continueDownloadTask:(FileModel *)fileModel;
- (void)cancelDownloadTask:(FileModel *)fileModel;

@end
